package com.lanou3g.ptp.achievement.mapper;

import com.lanou3g.ptp.entity.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CommentMapper {
    //添加
    int insert(Comment comment);

    //按日志id查询
    List<Comment> find(Long id);

    int deleteByCommentIdAndStudentId(@Param("commentId") Long commentId, @Param("studentId") Long studentId);
}
